home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 May / Macworld (1998-05).dmg / Shareware World / Info / Develop / AppleScript / Date Calculations / About Date Calculations next >
Text File  |  1995-12-11  |  2KB  |  25 lines

  1. Date Calculations is a scripting addition that adds some useful date and time functions to AppleScript. I’ve also enclosed a couple of sample applets to demonstrate their use. I first wrote this addition for AppleScript 1.0; AppleScript 1.1 has new date/time capabilities which make one or two, but not all, of the functions obsolete.
  2.  
  3. How to use: you must have AppleScript installed. The addition itself should work with 1.0, but the sample applets were compiled with 1.1, and are unusable under 1.0. Drag the “Date Calculations” file into your Scripting Additions folder. That’s it. Now double-click the “Days until Christmas” applet, and it will tell you the number of days until Christmas. Also try the “NZ Daylight Saving” applet, and it should display a message indicating the current state of Daylight Saving time in New Zealand. You can open these applets with the Script Editor and look at the scripts to see how they work.
  4.  
  5. Feel free to send comments and bug reports to:
  6.  
  7. Lawrence D’Oliveiro
  8. Information & Technology Services Dept
  9. University of Waikato
  10. Hamilton
  11. New Zealand
  12. Internet mail: ldo@waikato.ac.nz.
  13.  
  14. Copyright © 1994 by Lawrence D’Oliveiro. This code may be copied and distributed, but not for direct commercial gain.
  15.  
  16. Release notes:
  17.  
  18. 1.0d6 1994 March 24
  19. first public release.
  20.  
  21. 1.0d7 1994 July 22
  22. changed some field names for Date Items record structure, to avoid clashes with property names in AppleScript 1.1.
  23.  
  24. 1.0d8 1994 July 26
  25. major reworking to simplify the logic and fix some bugs while I was at it.